/*****************************************************************************************
 * FILE NAME: srv_crc                       COPYRIGHT (c) cos 2024
 * REVISION:  1.0.0                                     All Rights Reserved
 * DESCRIPTION:
 * =======================================================================================
 * UPDATE HISTORY：
 * REV      AUTHOR      DATE
 * v1.0.0   Tuxin       2024.10.14
 * DESCRIPTION OF CHANGE:
 ****************************************************************************************/
#ifndef __SRV_CRC_H
#define __SRV_CRC_H

//----------------------------------------------------------------------------------------
// @Project Includes
#include "typedefs.h"

//----------------------------------------------------------------------------------------
// @Global Macro Define in the module

//----------------------------------------------------------------------------------------
// @Global Type defines in the module

//----------------------------------------------------------------------------------------
// @Export global Variables declare in the module

//----------------------------------------------------------------------------------------
// @Export declaration of functions in the module
uint16_t srv_crc16_pc(uint8_t *_pBuf, uint16_t _usLen);
uint16_t srv_crc16_system(uint8_t *addr, uint32_t num, uint16_t crc);
uint8_t srv_crc8_afe(uint8_t *_pBuf, uint16_t _usLen);
uint8_t srv_crc8_cosm(uint8_t *_pBuf, uint16_t _usLen);
//void srv_crc_test(void);


#endif

// =======================================================================================
// End of file.
// =======================================================================================
